interface GlobalData {
  [propName: string]: any;
}
class Data {
  private globalData: GlobalData = {};
  setData(key: string, val: any): void {
    this.globalData[key] = val;
  }
  getData(key: string): any {
    return this.globalData[key];
  }
}
const globalData = new Data();
export default globalData;
